package com.rowline.admin.module.study.jdknewfeature;

/**
 * ClassName:DefaultAbleDemo
 * Created by 245167
 * on 2018/5/7  07:08
 * description:
 */
public class DefaultAbleDemo {

    public static void main(String[] args) {

        DefaultAble defaultAble = DefaultAbleFactory.create(DefaultAbleImpl::new);
        System.out.println(defaultAble.notRequired());

        defaultAble = DefaultAbleFactory.create(OverrideDefaultAbleImpl::new);
        System.out.println(defaultAble.notRequired());

    }

}
